<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="anbook.dao.controller.BoardController,anbook.dto.*"%>
<%
request.setCharacterEncoding("utf-8");
int num = Integer.parseInt(request.getParameter("num").toString());


BoardController bc = new BoardController();
Board board = bc.getBoard(num);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
</head>
<body>
	<form method="post" action="/BookProject/UpdateBoard" encType="multipart/form-data">
		<input type="hidden" name="num" value="<%=board.getB_num()%>">
		제목:<input type="text" name="title" value="<%=board.getB_title()%>"><br>
		내용:<textarea name="content"><%=board.getB_content()%></textarea><br>
		<input type="text" value="삭제할 파일번호" name="delete_pictures"><br>
		<input type="hidden" name="visible" value="1">
		<input type="file" name="image_1"><br>
		<input type="file" name="image_2"><br>
		<input type="submit" value="수정">
	</form>
</body>
</html>